package core;

import gitobject.GitObject;
import repository.Repository;

import java.io.File;
import java.io.IOException;

public class JitLsFiles {
    /**
     * command jit ls-files
     */
    public static void lsFiles()throws IOException {
        File index = new File(Repository.getGitDir()+ File.separator+"index");
        if(index.exists())
            System.out.println(GitObject.getValue(index));
        else
            System.out.println("No file cached");
    }
}
